package com.market.controller;

import com.market.common.vo.ResponseResult;
import com.market.entity.InMaven;
import com.market.service.InMavenService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/inmaven")
public class InMavenContorller {
    //查询入库单
    @Resource
    InMavenService inMavenService;
    @GetMapping("/getInMaven")
    public ResponseResult<List<InMaven>> getInMaven(){
        return ResponseResult.success(inMavenService.findInMaven());
    }
}
